{% extends "base/base.html" %}
{% load i18n %}

{% block title %}{% trans "Your profile" %}{% endblock %}
{% block page-header %}{% trans "Your profile" %}{% endblock %}

{% block content %}
    {% if messages %}
        <ul class="messages">
            {% for message in messages %}
                <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
            {% endfor %}
        </ul>
    {% endif %}
    <div class="row-fluid">
        <div class="span8">
            <p>
                {% trans "Nombre" %}: {{ user.first_name }} {{ user.last_name }}
            </p>
            <p>
               {% trans "Teléfono de la empresa" %}: {{ user.company.phone }}
            </p>
            <p>
                Email: {{ user.email }}
            </p>
            <p>
               {% trans "Area" %}: {{ user.company.company_area }}
            </p>
            <p>
               {% trans "Industria" %}: {{ user.company.company_industry }}
            </p>
            <p>
                {% trans "Empresa" %}: {{ user.company.company_name }}
            </p>
            <p>
                {% trans "Página Web" %}: {{ user.company.url }}
            </p>
            <p>
                {% trans "Dirección" %}: {{ user.company.address.street }}  {{ user.company.address.postal_code }} {{ user.company.address.country.city }}
                {% if user.company.address.municipal %}
                    {{ user.company.address.municipal.name }},
                {% endif %}
                {% if user.company.address.state %}
                    {{ user.company.address.state.name }},
                {% endif %}
                {{ user.company.address.country.name }}
            </p>
            <p>
                <a href="{% url 'userprofiles_profile_change' %}" class="btn btn-info">{% trans 'Cambiar mi perfil' %}</a>
            </p>
        </div>

        <div class="span4">
            <img src="/static/{{ user.company.logo }}" alt="logo" height="150" width="150">
        </div>
    </div>
{% endblock %}
